macでvpm check unityが通らない
from VRChat Creator Companion
macでvpm check unityが通らない
The Creator Companion is only fully-supported on Windows 10 (Windows 11 may work but it's not fully tested).
The CLI has some functionality on Mac and Linux.
https://vcc.docs.vrchat.com/vpm/cli#mac-and-linux-support
.NET 6 SDKを入れるとCLIが使えるようになる
インストーラーで入れても良いし
homebrewでも入れることができる
https://formulae.brew.sh/cask/dotnet-sdk
brew install --cask dotnet-sdk
code:zsh
vpm new my-first-world World --path ~/vrc
02:53:56 INF Found No Editors
02:53:56 INF Unity is not installed.
02:53:56 ERR No Unity Editor found, you need to set this before you can make new projects.
https://vcc.docs.vrchat.com/vpm/cli#mac-setup
code:zsh
vpm install templates
# テンプレートがインストールされる
vpm check hub
03:00:22 INF Found Unity Hub version 3.3.0 at /Applications/Unity Hub.app/Contents/MacOS/Unity Hub
03:00:22 INF Updating settings Hub Path to /Applications/Unity Hub.app/Contents/MacOS/Unity Hub
vpm check unity
03:03:10 INF Found No Editors
03:03:10 INF Unity is not installed.
Run vpm check hub to find and save the location of Unity Hub. For now, we assume it has been installed to its default location of /Applications/Unity Hub.app/Contents/MacOS/Unity Hub.
これはある
If this is not the case, you'll need to open your settings file and set the pathToUnityHub to the correct absolute path manually. Make sure to target the executable inside of the UnityHub.app as shown in the default path.
settings fileはsettings.jsonのこと
同様の症状?
@HiroyukiInou: VRChat Creator CompanionのCLIをMacに入れて動かすことに成功.なぜかvpmがUnityを発見できなかったので,settings.jsonを手で編集したら解決した.(略)
~/.local/share/VRChatCreatorCompanion/settings.json?
code:zsh
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless editors -i
2021.3.4f1 (Apple silicon), installed at /Applications/Unity/Hub/Editor/2021.3.4f1/Unity.app
2019.4.31f1 (Intel), installed at /Applications/Unity/Hub/Editor/2019.4.31f1/Unity.app
code:diff
- "unityEditors": [],
+ "unityEditors": "/Applications/Unity/Hub/Editor/2021.3.4f1/Unity.app", "/Applications/Unity/Hub/Editor/2019.4.31f1/Unity.app",
これを設定してもVRChat Creator Companion#6329fe4b774b17000069c356になる\
code:diff
- "unityEditors": [],
+ "unityEditors": "/Applications/Unity/Hub/Editor/2021.3.4f1/Unity.app/Contents/MacOS/Unity", "/Applications/Unity/Hub/Editor/2019.4.31f1/Unity.app/Contents/MacOS/Unity",
だめ